#include <cstdio>
#include <cstring>

#define MAXVAL 105

int B[MAXVAL];

int main() {
	int N;
	while (~scanf("%d", &N)) {
		if (N==0) break;
		memset(B, 0, sizeof(B));
		for (int i=0; i<N; i++) {
			int a;
			scanf("%d", &a);
			B[a]++;
		}
		bool first = true;
		for (int i=1; i<=100; i++) {
			for (int j=B[i]; j>0; j--) {
				if (first) first = false;
				else printf(" ");
				printf("%d", i);
			}
		}
		printf("\n");
	}
	return 0;
}
